package com.glodon.paas.document.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.glodon.paas.document.dao.domain.ProjectRoleEntity;

/**
 * @author admin
 */
public interface ProjectRoleDao extends DBDao<ProjectRoleEntity, String> {

    static Logger logger = LoggerFactory.getLogger(ProjectRoleDao.class);

    List<ProjectRoleEntity> getRoles(String projectId);
    
    List<ProjectRoleEntity> getRolesByFile(String fileId);

    boolean updateRole(ProjectRoleEntity entity);

    ProjectRoleEntity getDefaultRole(String projectId);

    boolean checkSameRole(ProjectRoleEntity role);
}
